package system

// Casbin info structure
type CasbinInfo struct {
	Path   string `json:"path"`   // 路径
	Method string `json:"method"` // 方法
}


//	默认权限，记录公共的权限
func DefaultCasbin() []CasbinInfo {
	return []CasbinInfo{
		{Path: "/admin/v1/userInfo", Method: "GET"},          //	获取用户信息
		{Path: "/admin/v1/logout", Method: "POST"},           //	退出登录
		{Path: "/admin/v1/userMenu", Method: "GET"},          //  获取用户动态路由菜单
		{Path: "/admin/v1/changePassword", Method: "POST"},   //	修改用户密码
		{Path: "/admin/v1/setUserAuthority", Method: "POST"}, //	修改权限
		{Path: "/admin/v1/setUserInfo", Method: "PUT"},       //	修改用户信息
	}
}
